using AddisonWesley.Michaelis.EssentialCSharp.Chapter06.Listing06_42;

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter06.Listing06_43
{
    #region INCLUDE
    public class Program
    {
        public static void Main()
        {
            Employee employee;
            employee = new ("Inigo", "Montoya")
            {
                // Leveraging object initializer syntax
                Salary = "Too Little"
            };

            #region EXCLUDE
            System.Console.WriteLine(
                "{0} {1}: {2}",
                employee.FirstName,
                employee.LastName,
                employee.Salary);
            #endregion EXCLUDE

            #region HIGHLIGHT
            (_, string firstName, string lastName, string? salary) = employee;
            #endregion HIGHLIGHT

            System.Console.WriteLine(
                "{0} {1}: {2}",
                firstName, lastName, salary);
        }
    }
    #endregion INCLUDE
}
